home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / gfx / 3d / irit50src.lha / irit5 / include / animate.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-16  |  2.0 KB  |  51 lines

  1. /*****************************************************************************
  2. *   "Irit" - the 3d polygonal solid modeller.                     *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 1.0, Jan. 1992   *
  5. ******************************************************************************
  6. * Global definitions of    Animation module.                           *
  7. *****************************************************************************/
  8.  
  9. #ifndef    ANIMATE_H    /* Define only once */
  10. #define    ANIMATE_H
  11.  
  12. #define ANIM_DEFAULT_ANIM_FILE_NAME    "IAnim"
  13.  
  14. typedef struct AnimationStruct {
  15.     RealType
  16.     StartT,                             /* Starting time of animation. */
  17.     FinalT,                          /* Termination time of animation. */
  18.     Dt,                                 /* Step size pf animation. */
  19.     RunTime;                      /* Current time of animation. */
  20.     int TwoWaysAnimation,   /* Should the animation bounce back and forth!? */
  21.     SaveAnimation,               /* Save animation sequence in a file!? */
  22.     BackToOrigin,               /* Should we terminate at the beginning? */
  23.     NumOfRepeat,                        /* How many iterations? */
  24.     StopAnim,           /* If TRUE, must stop the animation now. */
  25.     SingleStep,                 /* Are we in single step mode? */
  26.     TextInterface,        /* Are we communicating using a textual UI? */
  27.     _Count;                        /* Used internally. */
  28.     char
  29.     *ExecEachStep,              /* Program to execute each iteration. */
  30.     BaseFileName[LINE_LEN];      /* Base name of animation files saved. */
  31. } AnimationStruct;
  32.  
  33. #if defined(__cplusplus) || defined(c_plusplus)
  34. extern "C" {
  35. #endif
  36.  
  37. void AnimResetAnimStruct(AnimationStruct *Anim);
  38. void AnimGetAnimInfoText(AnimationStruct *Anim);
  39. void AnimFindAnimationTime(AnimationStruct *Anim, IPObjectStruct *PObjs);
  40. void AnimSaveIterationsToFiles(AnimationStruct *Anim, IPObjectStruct *PObjs);
  41. void AnimDoAnimation(AnimationStruct *Anim, IPObjectStruct *PObjs);
  42. void AnimDoSingleStep(AnimationStruct *Anim, IPObjectStruct *PObjs);
  43. int AnimCheckInterrupt(AnimationStruct *Anim);
  44.  
  45. #if defined(__cplusplus) || defined(c_plusplus)
  46. }
  47. #endif
  48.  
  49. #endif /* ANIMATE_H */
  50.  
  51.